package Java.com;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Test16 {
	public static void main(String args[]) {
		Date dNow = new Date();
		SimpleDateFormat ft = new SimpleDateFormat("yyyy.MM.dd hh:mm:ss a zzz");
		System.out.println("Current Date：" + ft.format(dNow));

		SimpleDateFormat ft2 = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
		System.out.println("Current Datetime：" + ft2.format(dNow));
	}
}
